<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="generator" content="pandoc">
  <meta name="author" content="Created by 杨志宏">
  <title>关于编程及计算机使用的建议</title>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
  <link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/reset.css">
  <link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/reveal.css">
  <style>
    .reveal .sourceCode {  /* see #7635 */
      overflow: visible;
    }
    code{white-space: pre-wrap;}
    span.smallcaps{font-variant: small-caps;}
    span.underline{text-decoration: underline;}
    div.column{display: inline-block; vertical-align: top; width: 50%;}
    div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
    ul.task-list{list-style: none;}
    pre > code.sourceCode { white-space: pre; position: relative; }
    pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
    pre > code.sourceCode > span:empty { height: 1.2em; }
    .sourceCode { overflow: visible; }
    code.sourceCode > span { color: inherit; text-decoration: inherit; }
    div.sourceCode { margin: 1em 0; }
    pre.sourceCode { margin: 0; }
    @media screen {
    div.sourceCode { overflow: auto; }
    }
    @media print {
    pre > code.sourceCode { white-space: pre-wrap; }
    pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
    }
    pre.numberSource code
      { counter-reset: source-line 0; }
    pre.numberSource code > span
      { position: relative; left: -4em; counter-increment: source-line; }
    pre.numberSource code > span > a:first-child::before
      { content: counter(source-line);
        position: relative; left: -1em; text-align: right; vertical-align: baseline;
        border: none; display: inline-block;
        -webkit-touch-callout: none; -webkit-user-select: none;
        -khtml-user-select: none; -moz-user-select: none;
        -ms-user-select: none; user-select: none;
        padding: 0 4px; width: 4em;
        color: #aaaaaa;
      }
    pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa;  padding-left: 4px; }
    div.sourceCode
      {   }
    @media screen {
    pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
    }
    code span.al { color: #ff0000; font-weight: bold; } /* Alert */
    code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
    code span.at { color: #7d9029; } /* Attribute */
    code span.bn { color: #40a070; } /* BaseN */
    code span.bu { } /* BuiltIn */
    code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
    code span.ch { color: #4070a0; } /* Char */
    code span.cn { color: #880000; } /* Constant */
    code span.co { color: #60a0b0; font-style: italic; } /* Comment */
    code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
    code span.do { color: #ba2121; font-style: italic; } /* Documentation */
    code span.dt { color: #902000; } /* DataType */
    code span.dv { color: #40a070; } /* DecVal */
    code span.er { color: #ff0000; font-weight: bold; } /* Error */
    code span.ex { } /* Extension */
    code span.fl { color: #40a070; } /* Float */
    code span.fu { color: #06287e; } /* Function */
    code span.im { } /* Import */
    code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
    code span.kw { color: #007020; font-weight: bold; } /* Keyword */
    code span.op { color: #666666; } /* Operator */
    code span.ot { color: #007020; } /* Other */
    code span.pp { color: #bc7a00; } /* Preprocessor */
    code span.sc { color: #4070a0; } /* SpecialChar */
    code span.ss { color: #bb6688; } /* SpecialString */
    code span.st { color: #4070a0; } /* String */
    code span.va { color: #19177c; } /* Variable */
    code span.vs { color: #4070a0; } /* VerbatimString */
    code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
    .display.math{display: block; text-align: center; margin: 0.5rem auto;}
  </style>
  <link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/theme/black.css" id="theme">
  <link rel="stylesheet" href="yangjh.css"/>
</head>
<body>
  <div class="reveal">
    <div class="slides">

<section id="title-slide">
  <h1 class="title">关于编程及计算机使用的建议</h1>
  <p class="author">Created by <a
href="https://yangzh.cn">杨志宏</a></p>
  <p class="date">Version: 1.1.2</p>
</section>

<section>
<section id="计算机的使用" class="title-slide slide level1">
<h1>计算机的使用</h1>

</section>
<section id="将重要资料备份到网络" class="slide level2">
<h2>将重要资料备份到网络</h2>
<p>可以使用百度网盘、阿里云网盘、坚果云、WPS 云，甚至 QQ
群来保存重要的文件，确保电脑出现故障无法启动或者丢失时，重要的资料不会丢失。</p>
<p>如果经济条件允许，个人推荐使用同步网盘，如 WPS 云、坚果云或者
iCloud。</p>
</section>
<section id="密码管理" class="slide level2">
<h2>密码管理</h2>
<ul>
<li>使用类似LastPass之类的工具，管理各种密码，教程见<a
href="https://www.bilibili.com/video/BV1qv411t7No/"
class="uri">https://www.bilibili.com/video/BV1qv411t7No/</a>。</li>
<li>不同网站使用不同的密码。</li>
<li>不要将密码保存到截图、笔记本上。原因很简单：手机、笔记本都有丢失的可能。</li>
</ul>
</section>
<section id="本地资料的组织" class="slide level2">
<h2>本地资料的组织</h2>
<ul>
<li>建议将资料按照一个可终身使用的分类体系进行组织。</li>
<li>这个分类方法还可以用在其它领域，如任务、笔记。</li>
<li>建议使用人生九宫格的分类思路，将电脑资料进行分类。</li>
</ul>
<p><img data-src="./images/life.jpg" /></p>
</section>
<section id="安装软件时使用官方提供的安装包" class="slide level2">
<h2>安装软件时使用官方提供的安装包</h2>
<p>计算机领域的灰色产业一直非常发达，为避免成为肉鸡，在安装软件时，尽可能去官方网站下载安装包进行安装，而不是从其它渠道如
QQ 群、百度网盘或者各种下载站下载。</p>
<p>如果经济条件允许，尽可能使用正版软件。</p>
</section>
<section id="常用工具的选择" class="slide level2">
<h2>常用工具的选择</h2>
<h3 id="原则">原则</h3>
<ol type="1">
<li>能用开源免费软件，就不用商业软件。</li>
<li>能用正版，就不用盗版。</li>
<li>能用简单的软件，就不用复杂的软件。</li>
<li>能用大厂的软件，就不用个人或者小厂的软件。</li>
<li>能用系统自带工具，就不额外增加软件。</li>
</ol>
</section>
<section class="slide level2">

<h3 id="常用工具建议">常用工具建议</h3>
<ol type="1">
<li>浏览器，可选择 MicroSoft Edge，而不是各种公司的定制版本，如 360
浏览器或者 QQ 浏览器。</li>
<li>搜索引擎，可选择 Bing.com，而不是 baidu、360 或者搜狗搜索。</li>
<li>办公软件，可选择免费的 WPS，而不是盗版的 Office 套件，正版 Office
除外。</li>
<li>视频剪辑软件，如无特殊需求，可选用字节跳动的剪映专业版，而非盗版的
PR 或者其它工具。</li>
<li>如果非要有安全工具，可选择 360 安全卫士，360
出于商业利益的考量，默认设置下有各种弹出窗口和广告，对用户会造成骚扰。但是可通过设置取消各种弹窗和广告，让
360 安安静静地工作。具体设置可以看这个视频：<a
href="https://www.bilibili.com/video/BV13h411n72s"
class="uri">https://www.bilibili.com/video/BV13h411n72s</a></li>
</ol>
</section>
<section id="系统备份与还原" class="slide level2">
<h2>系统备份与还原</h2>
<p>MacOS
可使用时间胶囊功能，对整个电脑的资料或者指定的内容进行备份。</p>
<p>Windows 系统可使用备份还原工具（例如<a
href="http://baoku.360.cn/soft/show/appid/1900056111">360
备份还原工具</a>），将本地硬盘整个备份，在有需要的时候还原。</p>
</section>
<section id="快捷键" class="slide level2">
<h2>快捷键</h2>
<p>常用操作，能用快捷键就用快捷键，能不用鼠标就不用鼠标。长期使用鼠标，会造成肌肉劳损。</p>
</section>
<section id="小结" class="slide level2">
<h2>小结</h2>
<p>培养建立良好的计算机使用习惯，合理组织文件，及时备份重要文件，将宝贵的时间用在业务能力的提高上。</p>
</section></section>
<section>
<section id="如何完成一个复杂的任务" class="title-slide slide level1">
<h1>如何完成一个复杂的任务？</h1>

</section>
<section id="pdca-循环" class="slide level2">
<h2>PDCA 循环</h2>
<p><img data-src="./images/PDCA.jpeg" /></p>
<p>PDCA
循环是美国质量管理专家休哈特博士提出的，后由戴明采纳普及，又称戴明环。</p>
</section>
<section id="plan" class="slide level2">
<h2>PLAN</h2>
<ol type="1">
<li>明确任务的要求。</li>
<li>可用倒推或者顺推法明确解决任务的思路。如果你能用程序实现某个任务，则表明你对这个任务非常了解。</li>
<li>可通过画流程图的方式将复杂任务拆分为小的任务。（推荐一款在线的作图工具，<a
href="https://www.processon.com/i/52df154f0cf27bee37613822">ProcessOn</a>)</li>
</ol>
</section>
<section id="do" class="slide level2">
<h2>Do</h2>
<p>逐个实现子任务。</p>
</section>
<section id="check" class="slide level2">
<h2>Check</h2>
<p>根据子任务的执行结果调整、优化流程。</p>
</section>
<section id="action" class="slide level2">
<h2>Action</h2>
<p>查漏补缺，完善笔记内容，优化解决方案。</p>
</section></section>
<section>
<section id="面向编程的使用习惯" class="title-slide slide level1">
<h1>面向编程的使用习惯</h1>

</section>
<section id="要重视开发环境的设置" class="slide level2">
<h2>要重视开发环境的设置</h2>
<p>一些不良习惯包括：随意指定基础开发环境(JDK、Node等)的安装路径，包括路径中有中文和空格。</p>
<p>统一采用默认安装路径和配置，能够减少大量没必要的低级错误。</p>
</section>
<section id="使用包管理工具安装软件" class="slide level2">
<h2>使用包管理工具安装软件</h2>
<p>不论什么系统，推荐使用包管理工具安装软件，而不是手工安装和更新，一方面能提高效率，另一方面降低因配置问题引起的故障。</p>
<p>Windows系统的包管理工具可使用<a
href="https://chocolatey.org/">chocolatey</a>。安装方式很简单：访问<a
href="https://chocolatey.org/install"
class="uri">https://chocolatey.org/install</a>地址，按提示步骤依次执行即可。</p>
<p>Mac系统推荐使用<a
href="https://brew.sh/">Homebrew</a>包管理工具。</p>
<p>安装包管理工具后，建议使用包管理工具安装必要工具，安装git、vscode、python、nodejs等等。</p>
</section>
<section id="开发常用工具" class="slide level2">
<h2>开发常用工具</h2>
<p>下面是一个常用开发工具的安装包文件，后缀名必须为<code>.config</code>。</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode xml"><code class="sourceCode xml"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">&lt;?xml</span><span class="ot"> version=</span><span class="st">&quot;1.0&quot;</span><span class="ot"> encoding=</span><span class="st">&quot;utf-8&quot;</span><span class="fu">?&gt;</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>&lt;<span class="kw">packages</span>&gt;</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;7zip&quot;</span> /&gt;</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;git&quot;</span> /&gt;</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;FiraCode&quot;</span> /&gt;</span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;Cmder&quot;</span> /&gt;</span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;vscode&quot;</span> /&gt;</span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;pandoc&quot;</span> /&gt;</span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;nodejs-lts&quot;</span> /&gt;</span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a>  &lt;<span class="kw">package</span><span class="ot"> id=</span><span class="st">&quot;python&quot;</span><span class="ot"> version=</span><span class="st">&quot;3.8.3&quot;</span>/&gt;</span>
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a>&lt;/<span class="kw">packages</span>&gt;</span></code></pre></div>
<p>使用<code>choco install xxx.config</code>命令即可安装<code>.config</code>文件中所有的软件。</p>
<p>参考资料：</p>
<ol type="1">
<li><a href="https://zhuanlan.zhihu.com/p/53421288"
class="uri">https://zhuanlan.zhihu.com/p/53421288</a></li>
</ol>
</section></section>
    </div>
  </div>

  <script src="https://unpkg.com/reveal.js@^4//dist/reveal.js"></script>

  <!-- reveal.js plugins -->
  <script src="https://unpkg.com/reveal.js@^4//plugin/notes/notes.js"></script>
  <script src="https://unpkg.com/reveal.js@^4//plugin/search/search.js"></script>
  <script src="https://unpkg.com/reveal.js@^4//plugin/zoom/zoom.js"></script>

  <script>

      // Full list of configuration options available at:
      // https://revealjs.com/config/
      Reveal.initialize({
        // Display controls in the bottom right corner
        controls: true,

        // Help the user learn the controls by providing hints, for example by
        // bouncing the down arrow when they first encounter a vertical slide
        controlsTutorial: true,

        // Determines where controls appear, "edges" or "bottom-right"
        controlsLayout: 'bottom-right',

        // Visibility rule for backwards navigation arrows; "faded", "hidden"
        // or "visible"
        controlsBackArrows: 'faded',

        // Display a presentation progress bar
        progress: true,

        // Display the page number of the current slide
        slideNumber: false,

        // 'all', 'print', or 'speaker'
        showSlideNumber: 'all',

        // Add the current slide number to the URL hash so that reloading the
        // page/copying the URL will return you to the same slide
        hash: true,

        // Start with 1 for the hash rather than 0
        hashOneBasedIndex: false,

        // Flags if we should monitor the hash and change slides accordingly
        respondToHashChanges: true,

        // Push each slide change to the browser history
        history: false,

        // Enable keyboard shortcuts for navigation
        keyboard: true,

        // Enable the slide overview mode
        overview: true,

        // Disables the default reveal.js slide layout (scaling and centering)
        // so that you can use custom CSS layout
        disableLayout: false,

        // Vertical centering of slides
        center: true,

        // Enables touch navigation on devices with touch input
        touch: true,

        // Loop the presentation
        loop: false,

        // Change the presentation direction to be RTL
        rtl: false,

        // see https://revealjs.com/vertical-slides/#navigation-mode
        navigationMode: 'default',

        // Randomizes the order of slides each time the presentation loads
        shuffle: false,

        // Turns fragments on and off globally
        fragments: true,

        // Flags whether to include the current fragment in the URL,
        // so that reloading brings you to the same fragment position
        fragmentInURL: true,

        // Flags if the presentation is running in an embedded mode,
        // i.e. contained within a limited portion of the screen
        embedded: false,

        // Flags if we should show a help overlay when the questionmark
        // key is pressed
        help: true,

        // Flags if it should be possible to pause the presentation (blackout)
        pause: true,

        // Flags if speaker notes should be visible to all viewers
        showNotes: false,

        // Global override for autoplaying embedded media (null/true/false)
        autoPlayMedia: null,

        // Global override for preloading lazy-loaded iframes (null/true/false)
        preloadIframes: null,

        // Number of milliseconds between automatically proceeding to the
        // next slide, disabled when set to 0, this value can be overwritten
        // by using a data-autoslide attribute on your slides
        autoSlide: 0,

        // Stop auto-sliding after user input
        autoSlideStoppable: true,

        // Use this method for navigation when auto-sliding
        autoSlideMethod: null,

        // Specify the average time in seconds that you think you will spend
        // presenting each slide. This is used to show a pacing timer in the
        // speaker view
        defaultTiming: null,

        // Enable slide navigation via mouse wheel
        mouseWheel: false,

        // The display mode that will be used to show slides
        display: 'block',

        // Hide cursor if inactive
        hideInactiveCursor: true,

        // Time before the cursor is hidden (in ms)
        hideCursorTime: 5000,

        // Opens links in an iframe preview overlay
        previewLinks: false,

        // Transition style (none/fade/slide/convex/concave/zoom)
        transition: 'slide',

        // Transition speed (default/fast/slow)
        transitionSpeed: 'default',

        // Transition style for full page slide backgrounds
        // (none/fade/slide/convex/concave/zoom)
        backgroundTransition: 'fade',

        // Number of slides away from the current that are visible
        viewDistance: 3,

        // Number of slides away from the current that are visible on mobile
        // devices. It is advisable to set this to a lower number than
        // viewDistance in order to save resources.
        mobileViewDistance: 2,

        // reveal.js plugins
        plugins: [
          RevealNotes,
          RevealSearch,
          RevealZoom
        ]
      });
    </script>
    </body>
</html>
